package com.example.demo.mapper;

import com.example.demo.model.User;
import org.apache.ibatis.annotations.*;

@Mapper
public interface UserMapper {

    @Select("SELECT * FROM user WHERE user_id = #{userId}")
    User findById(String userId);

    @Insert("INSERT INTO user(user_id) VALUES(#{userId})")
    int insert(User user);

    @Delete("DELETE FROM user WHERE user_id=#{userId}")
    int delete(String userId);
}